<?php
$intDbType		= $objRequest->getParam('stype', 0);
$intDbTime		= $objRequest->getParam('sti', 0);
$intPage		= $objRequest->getParam('page', 1);
$intLimit		= BEHAVIOUR_LIMIT;
$intOffset		= ($intPage - 1) * $intLimit;
$intTotal		= 0;
$objBehaviour	= new Behaviour();
$arrBehaviour	= $objBehaviour->getBehaviourByUserId($AppUI->id, $intDbType, $intDbTime, $intOffset, $intLimit, $intTotal);
if($intTotal >= MAX_DISPLAY) {
	$intTotal	= MAX_DISPLAY;
}
$this->view->arrBehaviour	= $arrBehaviour;
$this->view->arrDefault		= isset($arrDefault) ? $arrDefault : null;
$this->view->arrDbType		= isset($arrDbType) ? $arrDbType : null;
$this->view->arrDbTime		= isset($arrDbTime) ? $arrDbTime : null;
$this->view->intDbType		= $intDbType;
$this->view->intDbTime		= $intDbTime;
$this->view->intTotalPage	= ceil($intTotal / $intLimit);
$this->view->intPage 		= $intPage;	
?>